home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / AECUR100.ARJ / AZTECDOS.H < prev    next >
C/C++ Source or Header  |  1990-03-10  |  1KB  |  51 lines

  1. /**********************************************************************
  2.  *  
  3.  *  aztecdos.h
  4.  *  
  5.  *  copyright (c) 1988,89,90 J. Alan Eldridge
  6.  *
  7.  *  include file to define union REGS for Aztec C
  8.  *  
  9.  *  for some reason, they didn't put this anywhere in 
  10.  *  the header files that come with the compiler
  11.  *  
  12.  *  NOTE:
  13.  *
  14.  *  this is not quite the same as the MSC50 and TURBOC
  15.  *  data structure: they have the flags as an element of the
  16.  *  structure, whereas Aztec C gives the flags as the
  17.  *  return value of sysint()
  18.  *  
  19.  *********************************************************************/
  20.  
  21. #ifndef __AZTECDOS__
  22. #define __AZTECDOS__
  23.  
  24. union REGS {
  25.     struct {
  26.         short ax, bx, cx, dx, si, di, ds, es;
  27.     } x;
  28.     struct {
  29.         UCHAR al, ah, bl, bh, cl, ch, dl, dh;
  30.     } h;
  31. };
  32.  
  33. #define int86(n,i,o)    sysint(n,i,o)
  34.  
  35. #ifndef NO_PROTO
  36.  
  37. int sysint(
  38.     int         int_num,
  39.     union REGS  *in_regs,
  40.     union REGS  *out_regs);
  41.  
  42. void movblock(
  43.     void far    *src,
  44.     void far    *dest,
  45.     int         cnt);
  46.     
  47. #endif  /* NO_PROTO */
  48.     
  49. #endif  /* __AZTECDOS__ */
  50.  
  51.